/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.juiceshop.orientdb;

import com.orientechnologies.orient.core.record.impl.ODocument;

/**
 *
 * @author JSTAUDEMEYER
 */
public class RecordHelper {
  
  private RecordHelper() {}
  
  public static Object getField (ODocument doc, String name) {
    return doc.field(name);
  }
  
  public static String getFieldString (ODocument doc, String name) {
    return doc.field(name,String.class);
  }
  
  public static String getFieldInt (ODocument doc, String name) {
    return doc.field(name,Integer.class);
  }
  
  public static void setField (ODocument doc, String name, Object value) {
    doc.field(name, value);
  }
  
  
  
}
